package com.ruyuan.eshop.diplomacy.api;

import com.ruyuan.eshop.common.core.JsonResult;
import com.ruyuan.eshop.diplomacy.domain.dto.ProductSaleCollectDTO;
import com.ruyuan.eshop.diplomacy.domain.dto.ProductSaleRelationDTO;
import com.ruyuan.eshop.diplomacy.domain.query.ProductSaleQuery;
import com.ruyuan.eshop.diplomacy.domain.query.ProductSaleRelationQuery;

/**
 * 商品可售接口
 *
 * @author zhonghuashishan
 */
public interface ProductSaleApi {

    /**
     * 分页查询卖家下的可售商品
     *
     * @param productSaleQuery
     * @return com.ruyuan.eshop.common.core.JsonResult<com.ruyuan.eshop.diplomacy.domain.dto.ProductSaleDTO>
     * @author zhonghuashishan
     */
    JsonResult<ProductSaleCollectDTO> getSaleSku(ProductSaleQuery productSaleQuery);

    /**
     * 根据卖家ID和商品编码判断商品是否可售
     *
     * @param productSaleRelationQuery
     * @return com.ruyuan.eshop.common.core.JsonResult<com.ruyuan.eshop.diplomacy.domain.dto.ProductSaleRelationDTO>
     * @author zhonghuashishan
     */
    JsonResult<ProductSaleRelationDTO> getProductSaleRelationSku(ProductSaleRelationQuery productSaleRelationQuery);

}
